/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assign2.dipcomplies.Impl;

import za.ac.cput.assign2.dipcomplies.TransferFrom;
import za.ac.cput.assign2.dipcomplies.TransferTo;

/**
 *
 * @author Sisanda
 */
public class Atm implements TransferFrom, TransferTo 
{
    String accNum;
    double bal = 0;

    @Override
    public void remove(double amount) 
    {
       bal -= amount;
        
    }

    @Override
    public void add(double amount) 
    {
       bal += amount; 
        
    }
    public void setAccNum(String num)
    {
        num = accNum;
    }
    public String getAccNum ()
    {
        return accNum;
    }
    public void setBal(double bal)
    {
        this.bal = bal;
    }
    public double getBal()
    {
        return bal;
    }
    
    
}
